package task;

import java.util.Date;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import util.MYUtil;

@Component
public class MyQuartz {

	@Scheduled(cron = "0/1 * * * * ?")
	public void doMyQuartz() {
		System.out.println(MYUtil.dateFormat(new Date(), "yyyy-MM-dd HH-mm:ss")+"---我是定时任务---");
	}
}
